package com.lm.kilim.controller;

import com.lm.kilim.service.KilimService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class KilimController {

    private final KilimService kilimService;

    public KilimController(KilimService kilimService) {
        this.kilimService = kilimService;
    }

    @GetMapping("/kilim")
    public String run() {
        kilimService.runTask();
        return "Kilim task started!";
    }
}
